package com.syh.jn.scm.domain.downstream.repository.system;

import com.syh.core.ddd.infrastructure.repository.AggregateRepository;
import com.syh.jn.scm.domain.downstream.entity.system.DownMenu;
import com.syh.jn.scm.infrastructure.repository.model.system.MenuPermissionModel;

import java.util.List;

public interface DownMenuRepository extends AggregateRepository<DownMenu, Long> {

    /**
     * 维护菜单与权限中间表
     * @param munePerm
     */
    void updateMenuPermission(MenuPermissionModel munePerm);

    /**
     *  根据菜单id删除权限
     * @param menuId 菜单id
     * @param menuPermsDeleteIds
     */
    void removeMenuPermissionByIds(Long menuId, List<Long> menuPermsDeleteIds);
}
